<?php
/*
 * @Author: your name
 * @Date: 2021-11-02 22:05:43
 * @LastEditTime: 2021-11-10 16:25:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \property\app\Http\Middleware\CheckSession.php
 */

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class CheckSession
{
    /**
     * 检查session 
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
    //   echo 123;
      

        // header("Access-Control-Allow-Origin: *");                              //跨域
        // header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); 
        // $_SESSION['id'] = 1;
        // var_dump($_SESSION);
        // echo 123;


        return $next($request);
    }
}
